-- GENERATED SPELL FOR [Berserk Trogg] --


function spell0_1393(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_1393', 15000, 1)
end

function Sorts_1393(pUnit, Event)
local choix_sorts_1393 = math.random(0, 0)
if choix_sorts_1393 == 0 then
pUnit:RegisterEvent('spell0_1393', 1, 1)
end
end

function mob1393_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1393', math.random(1500, 3000), 1)
end

function mob1393_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1393_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1393_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1393, 1, 'mob1393_Action')
RegisterUnitEvent(1393, 2, 'mob1393_Leave')
RegisterUnitEvent(1393, 3, 'mob1393_Kill')
RegisterUnitEvent(1393, 4, 'mob1393_Die')
